﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

/// <summary>
/// Makes logging progress during import/export operations easier
/// </summary>
public class StatusMessage {
    /// <summary>
    /// The message type
    /// </summary>
    public enum StatusMessageType {
        Error,
        Success,
        Status,
        Other
    }

    public delegate void StatusChangedEventHandler(StatusMessage message);
    /// <summary>
    /// Gets or sets the message.
    /// </summary>
    /// <value>The message.</value>
    public string Message { get; set; }
    /// <summary>
    /// Gets or sets whether the message is an error.
    /// </summary>
    /// <value><c>true</c> if the message is an error, otherwise <c>false</c>.</value>
    public StatusMessageType MessageType { get; set; }

    /// <summary>
    /// Initializes a new <see cref="StatusMessage"/>.
    /// </summary>
    /// <param name="message">The message.</param>
    /// <param name="type">The type of the message.</param>
    public StatusMessage(string message, StatusMessageType type) {
        Message = message;
        this.MessageType = type;
    }
}